package cn.edu.njnu.opengmpback.Modeling.entity;

import cn.edu.njnu.opengmpback.resource.entity.ModelItem;
import cn.hutool.core.util.IdUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@Document
public class LogicModel {
    @Id
    @ApiModelProperty(value = "id",hidden = true)
    String id= IdUtil.objectId();
    String projectId;
    String name;
    String description;
    Boolean publicBoolean = true;
    String logicData;
    String creatorId;
    String creatorName;
    String creatorEmail;

    String modelStoreName; //素材名字
    String modelWebAddress; //素材存储地址
    String modelRelativePath; //素材相对路径

//    List<String> dataList  = new ArrayList<>();
//    List<String> modelList = new ArrayList<>();

    @ApiModelProperty(value = "创建时间", hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    Date createTime=new Date();

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    Date updateTime=new Date(); //创建时间

}
